package com.kyd.api.gateway.feign;

import com.kyd.base.response.Ret;
import com.kyd.api.gateway.fallback.AuthServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhuangqi
 * @date 2019-03-27
 */
@FeignClient(value = "auth-service", fallback = AuthServiceFallback.class)
public interface AuthService {

    @PostMapping(value = "/verify")
    Ret verify(@RequestParam("token") String token);

}
